package com.crm.model.entity.opportunityManager;

import java.util.ArrayList;
import java.util.List;

public class PhraseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PhraseExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPhraseIdIsNull() {
            addCriterion("phrase_id is null");
            return (Criteria) this;
        }

        public Criteria andPhraseIdIsNotNull() {
            addCriterion("phrase_id is not null");
            return (Criteria) this;
        }

        public Criteria andPhraseIdEqualTo(String value) {
            addCriterion("phrase_id =", value, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdNotEqualTo(String value) {
            addCriterion("phrase_id <>", value, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdGreaterThan(String value) {
            addCriterion("phrase_id >", value, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdGreaterThanOrEqualTo(String value) {
            addCriterion("phrase_id >=", value, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdLessThan(String value) {
            addCriterion("phrase_id <", value, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdLessThanOrEqualTo(String value) {
            addCriterion("phrase_id <=", value, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdLike(String value) {
            addCriterion("phrase_id like", value, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdNotLike(String value) {
            addCriterion("phrase_id not like", value, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdIn(List<String> values) {
            addCriterion("phrase_id in", values, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdNotIn(List<String> values) {
            addCriterion("phrase_id not in", values, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdBetween(String value1, String value2) {
            addCriterion("phrase_id between", value1, value2, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseIdNotBetween(String value1, String value2) {
            addCriterion("phrase_id not between", value1, value2, "phraseId");
            return (Criteria) this;
        }

        public Criteria andPhraseNameIsNull() {
            addCriterion("phrase_name is null");
            return (Criteria) this;
        }

        public Criteria andPhraseNameIsNotNull() {
            addCriterion("phrase_name is not null");
            return (Criteria) this;
        }

        public Criteria andPhraseNameEqualTo(String value) {
            addCriterion("phrase_name =", value, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameNotEqualTo(String value) {
            addCriterion("phrase_name <>", value, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameGreaterThan(String value) {
            addCriterion("phrase_name >", value, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameGreaterThanOrEqualTo(String value) {
            addCriterion("phrase_name >=", value, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameLessThan(String value) {
            addCriterion("phrase_name <", value, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameLessThanOrEqualTo(String value) {
            addCriterion("phrase_name <=", value, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameLike(String value) {
            addCriterion("phrase_name like", value, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameNotLike(String value) {
            addCriterion("phrase_name not like", value, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameIn(List<String> values) {
            addCriterion("phrase_name in", values, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameNotIn(List<String> values) {
            addCriterion("phrase_name not in", values, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameBetween(String value1, String value2) {
            addCriterion("phrase_name between", value1, value2, "phraseName");
            return (Criteria) this;
        }

        public Criteria andPhraseNameNotBetween(String value1, String value2) {
            addCriterion("phrase_name not between", value1, value2, "phraseName");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNull() {
            addCriterion("create_people_id is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNotNull() {
            addCriterion("create_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdEqualTo(String value) {
            addCriterion("create_people_id =", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotEqualTo(String value) {
            addCriterion("create_people_id <>", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThan(String value) {
            addCriterion("create_people_id >", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_people_id >=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThan(String value) {
            addCriterion("create_people_id <", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("create_people_id <=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLike(String value) {
            addCriterion("create_people_id like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotLike(String value) {
            addCriterion("create_people_id not like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIn(List<String> values) {
            addCriterion("create_people_id in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotIn(List<String> values) {
            addCriterion("create_people_id not in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdBetween(String value1, String value2) {
            addCriterion("create_people_id between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("create_people_id not between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderIsNull() {
            addCriterion("phrase_order is null");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderIsNotNull() {
            addCriterion("phrase_order is not null");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderEqualTo(Integer value) {
            addCriterion("phrase_order =", value, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderNotEqualTo(Integer value) {
            addCriterion("phrase_order <>", value, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderGreaterThan(Integer value) {
            addCriterion("phrase_order >", value, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("phrase_order >=", value, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderLessThan(Integer value) {
            addCriterion("phrase_order <", value, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderLessThanOrEqualTo(Integer value) {
            addCriterion("phrase_order <=", value, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderIn(List<Integer> values) {
            addCriterion("phrase_order in", values, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderNotIn(List<Integer> values) {
            addCriterion("phrase_order not in", values, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderBetween(Integer value1, Integer value2) {
            addCriterion("phrase_order between", value1, value2, "phraseOrder");
            return (Criteria) this;
        }

        public Criteria andPhraseOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("phrase_order not between", value1, value2, "phraseOrder");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}